![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
wabt.js is a port of WABT to the Web, allowing you to manipulate WebAssembly modules using a JavaScript API.
$> npm install wabt
require("wabt")().then(wabt => {
var wasm = ...; // a buffer holding the contents of a wasm file
var myModule = wabt.readWasm(wasm, { readDebugNames: true });
myModule.applyNames();
var wast = myModule.toText({ foldExprs: false, inlineExport: false });
console.log(wast);
});
The buildbot also publishes nightly versions once a day if there have been changes. The latest nightly can be installed through
$> npm install --save-exact wabt@nightly
or you can use one of the previous versions instead if necessary. Note the --save-exact
when using a nightly.
https://cdn.jsdelivr.net/gh/AssemblyScript/wabt.js@VERSION/index.js
https://cdn.jsdelivr.net/npm/wabt@VERSION/index.js
https://unpkg.com/wabt@VERSION/index.js
Replace VERSION
with a specific version or omit it (not recommended in production) to use main/latest.
parseWat(filename: string
, buffer: string | Uint8Array
, options?: WasmFeatures
): WasmModule
Parses a WebAssembly text format source to a module.
readWasm(buffer: Uint8Array
, options: ReadWasmOptions & WasmFeatures
): WasmModule
Reads a WebAssembly binary to a module.
WasmModule
A class representing a WebAssembly module.
void
void
void
void
ToTextOptions
): string
ToBinaryOptions
): ToBinaryResult
void
ReadWasmOptions
Options modifying the behavior of readWasm
.
boolean
ToTextOptions
Options modifying the behavior of WasmModule#toText
.
boolean
boolean
ToBinaryOptions
Options modifying the behavior of WasmModule#toBinary
.
boolean
boolean
boolean
boolean
ToBinaryResult
Result object of WasmModule#toBinary
.
Uint8Array
string
WasmFeatures
WebAssembly features to legalize. Finished features are enabled by default.
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Node.js ports of the following command line tools are included in the package as well:
The tools can also be run ad hoc (without explicitly installing the package), for example with:
$> npx -p wabt wasm2wat myModule.wasm -o myModule.wat
FAQs
JavaScript version of WABT, The WebAssembly Binary Toolkit.
The npm package wabt receives a total of 15,800 weekly downloads. As such, wabt popularity was classified as popular.
We found that wabt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.